import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

public class Demo2 {
	public static void main(String[] args) {
    	        Runtime rt = Runtime.getRuntime();  
    	        int exitVal = 0;  
    	        try {  
    	             Process proc = rt.exec("cmd /c start C:/\"Program Files (x86)\"/\"Google\"/\"Chrome\"/\"Application\"/chrome.exe");  
    	            InputStream es = proc.getErrorStream();  
    	            InputStreamReader reader = new InputStreamReader(es);  
    	            BufferedReader br = new BufferedReader(reader);  
    	            StringBuffer sb = new StringBuffer();  
    	            String l = "";  
    	            while((l = br.readLine()) != null){  
    	                sb.append(l+"\n");  
    	            }  
    	            System.out.println(sb.toString());  
    	            exitVal = proc.waitFor();  
    	        } catch (IOException e) {  
    	            e.printStackTrace();  
    	        } catch (InterruptedException e) {  
    	            e.printStackTrace();  
    	        }  
    	        System.out.println(exitVal);  
	}
}
